package pages;

import finds.Finder;

/**
 * Created by 13714526025 on 2018/9/20.
 */
public class InputWifiPwdPage {
    private Finder finder;
    public InputWifiPwdPage(Finder finder){
        this.finder=finder;
    }
    //取消按钮点击
    public void cancelClick(){
        finder.findElementById("com.oppo.ohome:id/action_cancel").click();
    }
    //确定按钮点击
    public void commitClick(){
        finder.findElementById("com.oppo.ohome:id/action_confirm").click();
    }
    //密码输入框
    public void inputPwd(String pwd){
        finder.findElementById("com.oppo.ohome:id/et_pass").sendKeys(pwd);
    }
    //密码清空
    public void pwdClear(){
        finder.findElementById("com.oppo.ohome:id/iv_del").click();
    }
    //显示密码
    public void showPwd(){
        finder.findElementById("com.oppo.ohome:id/checkbox_show_pass").click();
    }


}
